#https://www.cnblogs.com/lclblack/p/6377710.html
#pip install opencv-python -i https://pypi.douban.com/simple
#www.opencv.org.cn 中文
#http://opencv-python-tutroals.readthedocs.io/en/latest/index.html 英文

#导入cv模块
import cv2 as cv
import os

root = os.path.split(__file__)[0]

imgUrl = os.path.join(root,"data","poster.png")

#读取图像，支持 bmp、jpg、png、tiff 等常用格式
img = cv.imread(imgUrl)
#创建窗口并显示图像
cv.namedWindow("Image")
cv.imshow("Image",img)
cv.waitKey(0)
#释放窗口
cv.destroyAllWindows() 